package com.piece.module.flowable.dto;

import com.alibaba.fastjson.annotation.JSONField;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;

@Data
@NoArgsConstructor
@ApiModel("流程定义视图对象")
public class WfDefinition implements Serializable {

    @ApiModelProperty("流程定义主键")
    private String definitionId;

    @ApiModelProperty("流程名称")
    private String processName;

    @ApiModelProperty("流程Key")
    private String processKey;

    @ApiModelProperty("分类编码")
    private String category;

    @ApiModelProperty("版本")
    private Integer version;

    @ApiModelProperty("表单主键")
    private Long formId;

    @ApiModelProperty("表单名称")
    private String formName;

    @ApiModelProperty("部署ID")
    private String deploymentId;

    @ApiModelProperty(value = "流程定义状态", notes = "1=激活, 2=中止")
    private Boolean suspended;

    @ApiModelProperty("部署时间")
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    private Date deploymentTime;
}
